
#include<unistd.h>
#include<fcntl.h>
#include<string.h>
#include<malloc.h>
#define LINE_SIZE 512
struct myFILE{
    unsigned int flags;
    int fileno;
    //缓冲区
    char cache[LINE_SIZE];
    int cap;
    int pos;
};
typedef struct myFILE myFILE;
myFILE* my_fopen(const char* path,const char* mode);
ssize_t my_fwrite(myFILE* fp,const char* data,int len);
void my_fflush(myFILE*fp);
void my_fclose(myFILE*fp);

